package org.xt.module.view;

import java.util.List;

import javax.servlet.http.HttpSession;

import org.nutz.dao.Dao;
import org.nutz.dao.pager.Pager;
import org.nutz.ioc.loader.annotation.Inject;
import org.nutz.ioc.loader.annotation.IocBean;
import org.nutz.lang.util.NutMap;
import org.nutz.mvc.annotation.At;
import org.nutz.mvc.annotation.By;
import org.nutz.mvc.annotation.Filters;
import org.nutz.mvc.annotation.GET;
import org.nutz.mvc.annotation.Ok;
import org.nutz.mvc.annotation.POST;
import org.nutz.mvc.annotation.Param;
import org.nutz.mvc.filter.CheckSession;
import org.xt.constants.Const;
import org.xt.constants.Res;
import org.xt.entity.Department;
import org.xt.entity.Role;
import org.xt.entity.User;

@IocBean
@At("/user")
public class UserViewModule {
	@Inject
	private Dao dao;
	
	
	@At("/login")
	@GET
	@Ok("jsp:jsp.login")
	@Filters
	public void login(int id){
		
	}
	@At("/logout")
	@GET
	@Ok("jsp:jsp.data1FGjehSummary.autolist")
	@Filters
	public void logout(HttpSession session){
		session.setAttribute(Const.LOGIN_USER_SIGN, null);
	}
}
